<template>
  <div class="hello">
    <h1>{{ title }}</h1>
    <slot name="slot1"></slot>
    <div class="slot2">
      <slot name="slot2"></slot>
    </div>

  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: ['title', 'dataList']
}
</script>

<style lang="less" scoped>
.hello {
  background-color: skyblue;
  width: 200px;
  height: 300px;
  // display: flex;
  // flex-direction: column;
  // align-items: center;
  // justify-content: space-around;

  h1 {
    text-align: center;
    background-color: orange;
  }

  video {
    width: 100%;
  }

  img {
    width: 100%;
  }

  .slot2 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
  }
}
</style>
